import redis
from config import REDIS_DECODE_RESPONSES, REDIS_HOST, REDIS_PASSWORD, REDIS_PORT

pool = redis.ConnectionPool(
    host=REDIS_HOST, 
    port=REDIS_PORT, 
    decode_responses=REDIS_DECODE_RESPONSES,
    password=REDIS_PASSWORD)

    
rs = redis.Redis(connection_pool=pool)
